/**
 * 
 */
package com.tripwego.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.tripwego.shared.dto.TripDto;

/**
 * @author jguibert
 * 
 */
public interface TripDaoAsync {

	void create(TripDto tripDto, AsyncCallback<Long> callback);

	void update(TripDto tripDto, AsyncCallback<Void> callback);

	void delete(TripDto tripDto, AsyncCallback<Void> callback);

	void findAllTrip(AsyncCallback<List<TripDto>> callback);

	void findById(Long tripId, AsyncCallback<TripDto> callback);

}
